package com.xinweisi.dataserver.module.memberdata.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinweisi.dataserver.module.memberdata.user.domain.entity.MemberRegisterLogEntity;
import com.xinweisi.dataserver.module.memberdata.user.domain.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

/**
 * UserDao
 *
 * @author lijie1
 * @date 2020/7/21 0021 16:25 
 * @return 
 */
@Component
@Mapper
public interface UserDao extends BaseMapper {
    List<UserEntity> selectListNow(@Param("date")Date date);

    List<UserEntity> selectListOld(@Param("date")Date date);

    int getMemberListSize();

    List<UserEntity> getMemberListByAccount(@Param("account")String account);

    int selectUserByUserId(@Param("userId")String userId);

    void saveMemberRegisterLog(MemberRegisterLogEntity memberRegisterLog);

    void saveMemberInfo(UserEntity memberInfo);
}
